package com.zwy.ubts.service;


import com.zwy.ubts.bean.Order;
import com.zwy.ubts.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author zwy
 * @Description:
 * @Date Created in 14:02 2022/12/23
 */
public interface UserService {
    User login(User user);
    Integer addUser(User user);
    Boolean isHaveUser(String username);
    Boolean isHaveEMail(String email);
    User getUserByEMail(String email);
    User selectUserById(Integer id);
    //修改密码
    Integer updatePassword(String email,String userpassword);

    Integer updateUserMoneyById(Integer userId,Float money);
    List<User> selectUser();//查询全部的用户
    List<User> selectUserByRole(Integer userRole); //查询指定用户


}
